package com.bajiao.service.giveRule;

import com.bajiao.entity.giveRule.GiveRule;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * @Description: 赠送规则
 * @Author: FanJq
 * @Date:   2024-12-12
 * @Version: V1.0
 */
public interface GiveRuleService extends IService<GiveRule> {

    /**
     * @Description
     * 根据code获取赠送规则
     * @date 2024/12/12 9:58
     * @author FanJq
     * @param code
     * @return {@link GiveRule}
    */
    GiveRule getByCode(String code);

    /**
     * @Description
     * 获取赠送金额
     * @date 2024/12/12 9:58
     * @author FanJq
     * @param code
     * @return {@link BigDecimal}
    */
    BigDecimal getGiveAmount(String code);
}
